﻿@{
    Layout = null;
}
@model OASys.Web.Areas.ModuleSys.Models.MdoelOrgCompanyIndex
<div class="replace-container">
	<div class="common-table-container">
		<table class="common-table" id="common-table">
			<colgroup>
				<col width="40" />
				<col width="45" />
				<col width="45" />
				<col width="100" />
				<col width="150" />
				<col width="150" />
				<col width="200" />
				<col width="220" />
				<col width="100" />
				<col width="150" />
				<col width="220" />
				<col width="80" />
			</colgroup>
			<thead>
				<tr>
					<th>
						<input type="checkbox" class="common-table-checkbox-all" />
					</th>
					<th colspan="2">
						操作
					</th>
					@Html.HiddenFor(x => x.SearchEntity._OrderName, new { data_order_name = "" })
					@Html.HiddenFor(x => x.SearchEntity._OrderDirection, new { data_order_direction = "" })
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.CompanyCode, "组织机构代码"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.LicenseNo, "营业执照代码"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.TaxRegisterNo, "税务登记证号"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.CompanyName, "企业名称"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.Address, "企业地址"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.LinkMan, "联系人"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.LinkPhone, "联系电话"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.Email, "邮箱"))
					@(Html.ThOrderHelper<OASys.Entity.UTOrgCompany>(x => x.InputDate, "录入时间"))
				</tr>
			</thead>
			<tbody>
				@foreach (var item in Model.UTOrgCompanyCollection)
    {
					<tr ondblclick="javascript:show('@item.ID');">
						<td>
							<input type="checkbox" name="checkboxItem" class="checkboxItem" value="@item.ID" />
						</td>
						
						<td><a href="javascript:editOrgCompany('@item.ID')" class="a-edit" title="修改">&nbsp</a> </td>
						<td><a href="javascript:deleteOrgCompany('@item.ID')" class="a-delete" title="删除">&nbsp</a></td>
						
						<td title="@item.CompanyCode">
							@item.CompanyCode
						</td>
						<td title="@item.LicenseNo">
							@item.LicenseNo
						</td>
						<td title="@item.TaxRegisterNo">
							@item.TaxRegisterNo
						</td>
						<td title="@item.CompanyName"  style=" text-align:left; padding-left:5px;">
							@Project.Common.StringUtility.CutString(item.CompanyName, 14)
						</td>
						<td title="@item.Address"  style=" text-align:left; padding-left:5px;">
							@Project.Common.StringUtility.CutString(item.Address, 15)
						</td>
						<td title="@item.LinkMan">
							@item.LinkMan
						</td>
						<td title="@item.LinkPhone">
							@item.LinkPhone
						</td>
						<td title="@item.Email" style=" text-align:left; padding-left:5px;">
							@Project.Common.StringUtility.CutString(item.Email, 15)
						</td>
						<td title="@item.InputDate">
							@RazorWidget.RenderDate(item.InputDate, "yyyy-MM-dd")
						</td>
					</tr>
    }
			</tbody>
		</table>
	</div>
	<div>
		@{
    Html.RenderPartial("/Views/Controls/Paginate.cshtml", Model.PaginateHelperObject);
		}
	</div>
</div>
